const modalChildBehavior = require('../../../behaviors/modalChildBehavior');
Component({
  properties: {
    title: {
      type: String,
      value: ""
    },
    content: {
      type: String,
      value: ""
    },
    show: {
      type: Boolean,
      value: false
    },
    openType: {
      type: String,
      value: ""
    },
    showCancel: {
      type: Boolean,
      value: true
    }
  },
  behaviors: [ modalChildBehavior ],
  methods: {
    onCancel() {
      this.setDataSmart({
        show: false
      })
      this.triggerEvent('oncancel')
    },
    onSure() {
      this.setDataSmart({
        show: false
      }) 
      this.triggerEvent('onsure')
    }
  }
})